package com.czk.springcloud.ownFeign.register;

import com.czk.springcloud.entity.CommonResult;
import com.czk.springcloud.entity.Payment;
import com.czk.springcloud.ownFeign.annotation.MyFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 自定义feign客户端封装
 *
 * @Author:ChenZhangKun
 * @Date: 2021/5/13 14:19
 */
@Component
@MyFeign(value = "nacos-payment-provider")
public interface MyFeignService {
    @GetMapping("/payment/sql/{id}")
    public CommonResult<Payment> paymentSql(@PathVariable("id") Long id);
}
